home *** CD-ROM | disk | FTP | other *** search
- Path: apm-b325-8.ucsd.edu!user
- From: bredelin@sdcc13.ucsd.edu (Benjamin Redelings)
- Newsgroups: comp.lang.c++
- Subject: g++ 2.7.2 Bug
- Date: 31 Jan 1996 21:19:22 GMT
- Organization: University of California, San Diego
- Message-ID: <bredelin-3101961319210001@apm-b325-8.ucsd.edu>
- NNTP-Posting-Host: apm-b325-8.ucsd.edu
-
- I've found that g++ 2.7.2 doesn't seem to be able to do 2-step conversions
- all the time.
-
- My specific problem is this:
- I defined the conversions
- (char*) -> struct string
- struct string -> struct form\
-
-
- Now, I'm getting compiler errors;
-
- string s = "abc" // works
- string s = ("abc") //works
- form f = s; //works
- form f (s); //works
- form f("abc") //works
- form f = "abc" // the compiler can't figure out how to convert (char*) to form.
-
- Is this a bug or a feature? I can't think of any way it could be intentional...
-
-
- Thanks,
- BenRI
-